package com.legendshop.openportal.sdk.model.response.prod;

import com.legendshop.openportal.sdk.model.BaseResponse;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 校验商品可售性返回结果
 * @Author lwj
 * @data 2024/7/1
 **/
@Data
@Accessors(chain = true)
public class CheckSkuSaleStateAndStockResponse extends BaseResponse {

    private static final long serialVersionUID = 5279327096425348837L;

    @ApiModelProperty(value = "商品id")
    private Long prodId;

    @ApiModelProperty(value = "skuId")
    private Long skuId;

    @ApiModelProperty(value = "是否可售")
    private Boolean canPurchase;

    @ApiModelProperty(value = "不可售卖原因")
    private List<String> message = new ArrayList<>();

}
